TELConnect
Places a simple outgoing call.
pascal TELErr TELConnect (TELCAHandle hTELCA);
hTELCA
- A handle to a call appearance structure. You provide the handle you obtained from the
TELSetupCall
function (page 4-24).- function result
- A result code. If you pass an invalid handle, the function returns the
telBadCAErr
result code.DESCRIPTION
TheTELConnect
function places an outgoing call using the information in the call appearance structure specified by thehTELCA
parameter. You should specify a structure previously filled in by theTELSetupCall
function.For
TELConnect
to complete successfully, the call appearance referenced byhTELCA
must be in thetelCAIdleState
state when you callTELConnect
.When
TELConnect
returns thenoErr
result code, the telephone tool has accepted the connect request and will attempt to place the call. Depending on the telephone tool you are using, your call appearance message handler may get a series of messages that indicate what is happening with the connection attempt. For example, you might get this sequence of call appearance messages:
telCAOutgoingMsg
telCAProgressMsg
with thevalue
parameter set to telCAPDialTonetelCAProgressMsg
with thevalue
parameter set totelCAPDialing
telCAProgressMsg
with thevalue
parameter set totelCAPUpdate
telCAProgressMsg
with thevalue
parameter set totelCAPRinging
telCAActiveMsg
SEE ALSO
Call appearance messages are described in Chapter 5.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help